package com.myspring.resttest.dao;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.myspring.resttest.model.SpringHibernateUser;

@EnableTransactionManagement
public interface SpringHibernateUserDao {
	
	void insertUser(SpringHibernateUser user);

	SpringHibernateUser getUserById(int userId);

	SpringHibernateUser getUser(String username);

	List<SpringHibernateUser> getUsers();
}
